package com.xxx.springboot.service;

import javax.servlet.http.HttpServletRequest;

/**
 * 1.幂等性处理
 * token服务接口
 */
public interface TokenService {

	/**
     * 创建token
     * @return
     */
    public String createToken();

    /**
     * 检验token
     * @param request
     * @return
     */
    public boolean checkToken(HttpServletRequest request) throws Exception;
    
}
